package TCP;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class ClientDemo01 {
    public static void main(String[] args) throws IOException {
        Socket s=new Socket("192.168.146.1",10000);

        OutputStream os = s.getOutputStream();
        os.write("hello,tcp".getBytes());

        s.close();
    }
}
